package com.carepad.entity.mapper;

import java.util.Date;

public class RecordItemViewMapper {
	private Integer groupId;
	private String groupName;
	private Integer groupOrder;
	private String actionItem;
	private Integer actionItemOrder;
	private String answerType;
	private String answer;
	private String selectedAnswer;
	private Date plannedTime;

	public Integer getGroupId() {
		return groupId;
	}

	public void setGroupId(Integer groupId) {
		this.groupId = groupId;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public Integer getGroupOrder() {
		return groupOrder;
	}

	public void setGroupOrder(Integer groupOrder) {
		this.groupOrder = groupOrder;
	}

	public String getActionItem() {
		return actionItem;
	}

	public void setActionItem(String actionItem) {
		this.actionItem = actionItem;
	}

	public Integer getActionItemOrder() {
		return actionItemOrder;
	}

	public void setActionItemOrder(Integer actionItemOrder) {
		this.actionItemOrder = actionItemOrder;
	}

	public String getAnswerType() {
		return answerType;
	}

	public void setAnswerType(String answerType) {
		this.answerType = answerType;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public String getSelectedAnswer() {
		return selectedAnswer;
	}

	public void setSelectedAnswer(String selectedAnswer) {
		this.selectedAnswer = selectedAnswer;
	}

	@Override
	public boolean equals(Object o) {
		if (o == null) {
			return false;
		}
	    if (o == this) {
	    	return true;
	    }
	    
	    if (!(o instanceof RecordItemViewMapper))return false;
	    
	    RecordItemViewMapper otherObject = (RecordItemViewMapper)o;
	    
	    if(this.groupId == null) {
	    	return false;
	    }
	    
	    if(this.groupId.equals(otherObject.groupId)) {
	    	return true;
	    } else {
	    	return false;
	    }
	}

	@Override
	public int hashCode() {
		return 17;
	}

	public Date getPlannedTime() {
		return plannedTime;
	}

	public void setPlannedTime(Date plannedTime) {
		this.plannedTime = plannedTime;
	}
}
